package de.hsb.ai.devil.ui.components;

import jade.core.AID;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import de.hsb.ai.devil.agent.AgentManager;

public class KillAgentLister implements ActionListener {
	
	private AID aid;
	private AgentManager am;
	
	public KillAgentLister(AID aid){
		this.aid = aid;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		am.deleteAgent(aid);
	}

}
